[#escape x as (x)!?html]
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8"/>
<title>我的私信_${user.username}_${site.fullNameOrName}${global.customs['poweredby']}</title>
<meta name="keywords" content="${node.keywords}"/>
<meta name="description" content="${node.description}"/>
<link href="_files/global.css" rel="stylesheet"/>
<link href="_files/style.css" rel="stylesheet"/>
[#include 'inc_js.html'/]
<script type="text/javascript" src="${ctx}/static/vendor/My97DatePicker/cn_WdatePicker.js"></script>
<style>
.user-top{background-color:#008ee1;color:#fff;}
.user-top a{color:#fff;text-decoration:none;}
.user-top a:hover{color:#fff;}
.ct-bg{background-color:#fff;border:1px solid #dcdcdc;}
.user-box{border:1px solid #ccc;background-color:#fff;}
.user-box-head{padding:0 12px;border-bottom:1px solid #eee;line-height:32px;height:32px;font-size:14px;font-weight:bold;font-family:"Microsoft YaHei";}
.user-box-body{padding:5px 12px;}
.user-box-body-item{padding:3px 0;}
.user-box-body-item a{color:#4466bb;font-size:14px;font-family:"Microsoft YaHei";text-decoration:none;display:block;}
 
.user-box-body-item a:hover{}
.user-box-body-item label{color:#666;}
.user-nav{list-style:none;padding-left:0;overflow:hidden; border-bottom:1px solid #008ee1;font-family:"Microsoft YaHei";font-size:14px;}
.user-nav-item{float:left;margin-left:12px;padding:0 12px;line-height:28px;background-color:#e6e6e6;}
.user-nav-item a{color:#666;text-decoration:none;}
.user-nav-item a:hover{color:#000;}
.user-nav-item-curr{background-color:#008ee1;}
.user-nav-item-curr a{color:#fff;}
.user-nav-item-curr a:hover{color:#fff;}

.ft-label{text-align:right;width:150px;color:#666;}
.ft-content{padding:3px 0 3px 8px;}
.ft-content input[type=text],.ft-content input[type=password]{height:18px;line-height:18px;}
</style>
</head>
<body style="background-color:#f4f4f4;">
<div class="user-top">
	<div class="w center c999" style="height:32px;line-height:32px;">
		<div class="left">
			<a class="topa ml5" href="${ctx}/" target="_blank">首页</a>
			<a class="topa ml5" href="${ctx}/sitemap" target="_blank">网站地图</a>
			<a class="topa ml5" href="${ctx}/rss">RSS订阅</a>
			<a class="topa ml5" href="${ctx}/tags">TAGS标签</a>
		</div>
		<div class="right">
			<script type="text/javascript" src="${ctx}/login_include?d=${.now?time}"></script>
		</div>
		<div class="clear"></div>
	</div>
</div>
<div class="w center mt10 oh">
	[#include 'sys_member_my_header.html'/]
</div>
<div class="w center mt10 oh">
	<div class="left" style="width:240px;">
		<div class="user-box">
			<div class="user-box-head">账号管理</div>
			<div class="user-box-body">
				[#include 'sys_member_my_left.html'/]
			</div>
		</div>
	</div>
	<div class="right user-box" style="width:740px;">
		<div class="user-box-head">
			<div class="left">我的私信 - 与 <span>${contact.username}</span> 的私信</div>
			<div class="right"><a href="../../message" class="a-hover" style="font-weight:normal;color:#4466bb;">返回</a></div>
			<div class="clear"></div>
		</div>
		<div style="padding:10px 20px 0 30px;">
			<form id="sendMessageForm" action="${ctx}/my/message/send" method="post" style="padding:10px 0;">
				<input type="hidden" name="nextUrl" value="${ctx}/my/message/contact/${contact.id}"/>
				<input type="hidden" name="timeout" value="0"/>
				<input type="hidden" name="receiverUsername" value="${contact.username}"/>
				<div>
					<textarea name="text" data-rule-required="true" maxlength="1000" style="width:85%;height:120px;" onkeydown="if(event.ctrlKey&&event.keyCode==13){$('#sendMessageForm').submit();}"></textarea>
				</div>
				<div class="mt5"><input type="submit" value="发送私信" style="height:25px;"/></div>
			</form>
		</div>
		<div style="padding:0 10px 10px 10px;">
			[@MessageContactPage userId=user.id contactId=contact.id;pagedList]
			[#list pagedList.content as bean]
			<div style="padding:10px 20px;border-bottom:1px solid #eee;">
				<div class="left" style="width:60px;"><a href="${ctx}/space/${bean.sender.id}" target="_blank"><img src="${bean.sender.avatarSmall}" class="comment-avatar"/></a></div>
				<div class="right" style="width:610px;">
				<div><a href="${ctx}/space/${bean.sender.id}" target="_blank" class="a-hover c-comment fs14">${bean.sender.username}</a> &nbsp; <span class="c-666">${prettyTime(bean.sendTime)}</span></div>
					<div class="mt5">
						<div><strong>${bean.subject}</strong></div>
						<div>[#noescape]${bbcode(bean.text)}[/#noescape]</div>
					</div>
					<div class="mt5 c-999" style="text-align:right;"><a href="../delete?ids=${bean.id}&nextUrl=${ctx}/my/message/contact/${contact.id}&timeout=0" class="c-999 a-hover">删除</a></div>
				</div>
				<div class="clear"></div>
			</div>
			[/#list]
			<div class="mt10">
				[#include 'page.html'/]
			</div>
			[/@MessageContactPage]
		</div>
	</div>
</div>
<div style="border-top:1px solid #e6e6e6;padding-bottom:20px;margin-top:30px;"></div>
<div class="w center text-center">
	<div class="powered">    
		<span>Powered by <strong style="font-size:12px"><a href="http://www.jspxcms.com" target="_blank" class="c-666 a-hover">Jspxcms</a></strong></span>
    <span>&copy; 2010-2017 Jspxcms All Rights Reserved</span>
	</div>
	<div class="copyright">
		<span>${site.customs['company']} 版权所有</span>
		<span><a href="http://www.miibeian.gov.cn" target="_blank" class="icp c-666 a-hover">${site.customs['icp']}</a></span>
	</div>
</div>
</body>
</html>
[/#escape]